import React,{ Component } from 'react'
import './style.less'
import ImgRight from '../../../static/icon/arrow-right.png'
export default class MineHeader extends Component{
  render(){
    return(
      <div className='mine-header'>
        <img className='mine-img' src={ImgRight} alt='' onClick={this.gobackHandler.bind(this)}/>
        <span>我</span>
        <p><span>{this.props.title}</span></p>
      </div>
    )
  }
  gobackHandler(){
    this.props.history.goBack();
  }
}
